import 'package:beautiful_demo/common/manager/user.dart';
import 'package:beautiful_demo/mvc/controller.dart';
import 'package:beautiful_demo/mvc/user/login/controller.dart';

import 'view.dart';
import 'http.dart';
import 'package:flutter_mvc/flutter_mvc.dart';

///Description:我的
///Author:teihideharu
class MineController extends BaseController {
   final MainController mainController;
   MineController(this.mainController):super(MinePage());
   var _http=MineHttp();
   
   @override
   void initState(){
       super.initState();
       
   }

   @override
  void onResume() {
    super.onResume();
    setRootState();
  }
   

  void onLoginOutClick() async  {
     UserManager.instance.loginOut();
     await LoginController().push(context);
     if(UserManager.instance.isLogin){
     }else{
       mainController.onTabItemClick(0);
     }
  }
}
